﻿<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../../a9loader.js"></script>
<script type="text/javascript">
A9Loader.syncLoadClass('com.trydofor.a9text.a9util');
document.writeln("<pre>");
var str = "\\";
document.writeln(str+"|"+A9Util.trimEscape(str,str.lastIndexOf('\\'))+"|");
var str = "\\aa";
document.writeln(str+"|"+A9Util.trimEscape(str,str.lastIndexOf('\\'))+"|aa");
var str = "\\\\\\\\aa";
document.writeln(str+"|"+A9Util.trimEscape(str,str.lastIndexOf('\\'))+"|2aa");
var str = "\\\\\\\\\\aa";
document.writeln(str+"|"+A9Util.trimEscape(str,str.lastIndexOf('\\'))+"|2aa");
var str = "b\\";
document.writeln(str+"|"+A9Util.trimEscape(str,str.lastIndexOf('\\'))+"|b");
var str = "b\\aa";
document.writeln(str+"|"+A9Util.trimEscape(str,str.lastIndexOf('\\'))+"|baa");
var str = "b\\\\\\\\aa";
document.writeln(str+"|"+A9Util.trimEscape(str,str.lastIndexOf('\\'))+"|b2a");
var str = "b\\\\\\\\\\aa";
document.writeln(str+"|"+A9Util.trimEscape(str,str.lastIndexOf('\\'))+"|b2a");
//
var str ="file://D:/workspace/a9text/";
document.writeln(str+"|"+A9Util.getDir(str));
var str ="file://D:/workspace/a9text/test.htm";
document.writeln(str+"|"+A9Util.getDir(str));
var str ="test.htm";
document.writeln(str+"|"+A9Util.getDir(str));
var str ="/test.htm";
document.writeln(str+"|"+A9Util.getDir(str));
var str ="$var here";
document.writeln(str+"|"+A9Util.hasVariable(str));
var str ="\\\\$var here";
document.writeln(str+"|"+A9Util.hasVariable(str));
var str ="\\$var here";
document.writeln(str+"|"+A9Util.hasVariable(str));
var str ="\t　　  ";
document.writeln(A9Util.valueBlank(str).length+"|"+A9Util.valueBlank(A9Util.shiftBlank(str,5)).length);
var str ="\t  　　";
document.writeln(A9Util.valueBlank(str).length+"|"+A9Util.valueBlank(A9Util.shiftBlank(str,5)).length);

document.writeln("</pre>");
</script>
